package com.itheima.a01mybytestream;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo2 {
    public static void main(String[] args) throws IOException {
        //熟悉该类下write方法的多种传参形式

        FileOutputStream fos=new FileOutputStream("myio\\a.txt");

        byte[] buf={97,98,99,100,101,102,103,104,105};

        fos.write(buf,1,3);
        fos.write(97);

        fos.close();
    }
}
